package com.uphone.magicleafteacher.pro.activity;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.SeekBar;
import android.widget.TextView;

import com.uphone.magicleafteacher.R;
import com.uphone.magicleafteacher.base.BaseGActivity;
import com.uphone.magicleafteacher.util.AudioPlayProgressUtil;

import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;

public class RetellActivity extends BaseGActivity {
    @BindView(R.id.img_book)
    ImageView imgBook;
    @BindView(R.id.text_bn)
    TextView textBn;
    @BindView(R.id.text_studentname)
    TextView textStudentname;
    @BindView(R.id.text_time)
    TextView textTime;
    @BindView(R.id.text_voice)
    TextView textVoice;
    @BindView(R.id.iv_play)
    ImageView ivPlay;
    @BindView(R.id.sb_audio)
    SeekBar sbAudio;
    @BindView(R.id.tv_duration)
    TextView tvDuration;
    @BindView(R.id.linear)
    LinearLayout linear;
    @BindView(R.id.img_work)
    ImageView imgWork;
    @BindView(R.id.button_submit)
    Button buttonSubmit;
    private AudioPlayProgressUtil audioPlayUtils;
    @Override
    protected void initBundle() {

    }

    @Override
    protected int initLayout() {
        return R.layout.activity_retell;
    }

    @Override
    protected void initView() {

    }

    @Override
    protected void initTitle() {
        initTitle("复述");
    }

    @Override
    protected void initData() {

    }

    @Override
    protected void initListener() {

    }


    @OnClick({R.id.iv_play, R.id.img_work, R.id.button_submit})
    public void onViewClicked(View view) {
        switch (view.getId()) {
            case R.id.iv_play:
                if (view.isSelected()) {
                    audioPlayUtils.stop();
                } else {
                    audioPlayUtils.play(getResources().getString(R.string.music_1));
                }
                break;
            //开始批改
            case R.id.img_work:

                break;
            case R.id.button_submit:
                Intent intent = new Intent(this, CorrectRetellActivity.class);
                startActivity(intent);
                break;
        }
    }
}
